﻿using Newtonsoft.Json;

public class JsonHelper
{
    public static string ToJson(object value)
    {
        return JsonConvert.SerializeObject(value);
    }

    public static T FromJson<T>(string value)
    {
       return JsonConvert.DeserializeObject<T>(value);
    }
}
